//
// Created by rock on 2020/11/25.
//
#include <jni.h>
#ifndef MY_APPLICATION_SERIALPORT_H
#define MY_APPLICATION_SERIALPORT_H


#ifdef __cplusplus
extern "C" {
#endif
/*
 * Class:     com_serialport_library_core_SerialPort
 * Method:    open
 * Signature: (Ljava/lang/String;II)Ljava/io/FileDescriptor;
 */
JNIEXPORT JNICALL jobject JNICALL Java_android_1serialport_1api_SerialPort_open
        (JNIEnv *, jclass, jstring, jint, jint);

/*
 * Class:     com_serialport_library_core_SerialPort
 * Method:    close
 * Signature: ()V
 * Java_android_1serialport_1api_SerialPort_close
 */

JNIEXPORT JNICALL void  Java_android_1serialport_1api_SerialPort_close
(JNIEnv *, jobject);

#ifdef __cplusplus
}
#endif
#endif //MY_APPLICATION_SERIALPORT_H
